package swhx
{
	import mx.core.Application;
	import flash.events.Event;
	import mx.events.FlexEvent;
	import flash.utils.describeType;
	import flash.external.ExternalInterface;
	
	public class HaxeApplication extends Application
	{
		public function HaxeApplication()
		{
			super();
			swhx.Api.init(this);
           			
			ExternalInterface.call(":flexApplication", ":initialized");
			
			addEventListener(FlexEvent.CREATION_COMPLETE, _applicationCreate, false, 0, true);
		}

		private function _applicationCreate(evt:Event):void
		{
			ExternalInterface.call(":flexApplication", ":applicationCreated");
			

		}		
	}
} 